{% extends 'base.html' %}

{% block content %}
<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card text-center">
                <div class="card-header {% if status == 'success' %}bg-success text-white{% else %}bg-danger text-white{% endif %}">
                    <h4>激活结果</h4>
                </div>
                <div class="card-body">
                    <div class="mb-4">
                        {% if status == 'success' %}
                            <i class="fas fa-check-circle text-5xl text-success mb-4"></i>
                        {% else %}
                            <i class="fas fa-exclamation-circle text-5xl text-danger mb-4"></i>
                        {% endif %}
                        <h5 class="text-center">{{ message }}</h5>
                    </div>
                    {% if action_url %}
                        <a href="{{ action_url }}" class="btn btn-primary btn-block">
                            {{ action_text }}
                        </a>
                    {% endif %}
                    <div class="mt-4">
                        <a href="{% url 'user:login' %}" class="btn btn-secondary">返回登录</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}